﻿using System;

namespace UTable.Core.Configuration
{
    /// <summary>
    /// The root window
    /// </summary>
    [Serializable]
    public class WindowConfiguration
    {
        #region Private Members

        private int width;

        private int height;

        private int left;

        private int top;

        #endregion

        #region Properties

        public bool Maximized { get; set; }

        //TODO When set Maximized, the return value of Width and Height should be right, but the origin value should also be restored.
        public int Width
        {
            get
            {
                return width;
                // Maximized ? Maxwidth : width;
            }
            set { width = value; }
        }

        public int Height
        {
            get { return height; }
            set { height = value; }
        }

        public int Left
        {
            get { return left; }
            set { left = value; }
        }

        public int Top
        {
            get { return top; }
            set { top = value; }
        }

        #endregion
    }
}
